package observer;

public class Policeman implements Observer {
    @Override
    public void update(Observer observer, Object obj) {
        System.out.println(observer.getClass().getName() + ":" + obj);
        this.doSomething();
    }

    private void doSomething() {
        System.out.println("警察观察者");
    }
}
